package com.buba.other.mapper;

import com.buba.pojo.other.MedicalRecords;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.buba.pojoVo.MedicalRecordsVo;
import org.apache.ibatis.annotations.Mapper;
import com.buba.other.data.dto.MedicalRecordsDto;
import com.buba.other.data.dto.MedicalRecordsDetailsDto;
import com.buba.pojo.other.MedicalRecords;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 病历表 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-06-09
 */
@Mapper
public interface MedicalRecordsMapper extends BaseMapper<MedicalRecords> {

    List<MedicalRecordsVo> getBinglis(Integer patientId);

    List<MedicalRecordsDto> getMedicalRecords(@Param("startDate")Date startDate,
                                              @Param("endDate")Date endDate,
                                              @Param("patientId")Integer patientId);
    MedicalRecordsDetailsDto getMedicalRecordsDetails(Integer id);
}
